package com.axzhengxin.platform.business.service.impl;

import com.axzhengxin.platform.business.domain.BizRepaymentInfo;
import com.axzhengxin.platform.business.mapper.BizRepaymentInfoMapper;
import com.axzhengxin.platform.business.service.IBizRepaymentInfoService;
import com.ruoyi.common.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author AHZJ0005
 * @Date 2021/3/3-10:01
 **/
@Service
public class BizRepaymentInfoServiceImpl implements IBizRepaymentInfoService {

    @Autowired
    private BizRepaymentInfoMapper bizRepaymentInfoMapper;

    @Override
    public List<BizRepaymentInfo> bizRepaymentInfoList(String reqId) {
        Long deptId = SecurityUtils.getLoginUser().getUser().getDeptId();
        return bizRepaymentInfoMapper.bizRepaymentInfoList(reqId,String.valueOf(deptId));
    }
}
